<%@page import="java.util.ArrayList"%>
<%@page import="member.MemberVo"%>
<%@page import="member.MemberMyba"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>list(회원)</title>
</head>
<body>
<jsp:useBean id='vo' class='member.MemberVo'/>
<jsp:setProperty property="*" name="vo"/>
<%
MemberMyba member=new MemberMyba();
member.setMemberVo(vo);
ArrayList<MemberVo> data = member.list();
%>
<form name='member_list' method='post' action='list.jsp'>

	<input type='search' name='find' value='<%=vo.getFind() %>'>
	<input type='submit' value='검색'>
</form>

<hr/>

<%
for(int i=0; i<data.size(); i++){
	
	MemberVo v =data.get(i);
	out.print("<div>");
	out.print("<a href='view.jsp?memberid="+ v.getMemberid()+"'>"+v.getMemberid()+"</a> ," + v.getIrum());
	out.print("</div>");
}
/* for(int i=0; i<data.size(); i++){
	
	MemberVo v= data.get(i);
	out.print("<div>");
	out.print("<a href='view.jsp?mid="+v.getMid()+">"
	+v.getMemberid()+"</a>, " + v.getIrum());
	out.print("</div>");
} */
%>


</body>
</html>